home *** CD-ROM | disk | FTP | other *** search
/ Creative Computers / Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso / commercial / inovatronics / candodemo / helpfiles / graphics  < prev    next >
Text File  |  1994-11-17  |  9KB  |  473 lines

  1. C- AreaCircle            |areacircle|
  2. C- AreaEllipse            |areaellipse|
  3. C- AreaPolygon            |areapolygon|
  4. C- AreaRectangle        |arearectangle|
  5. C- ClearWindow            |clearwindow|
  6. F- ColorOfPixel            |colorofpixel|
  7. C- DrawCircle            |drawcircle|
  8. C- DrawEllipse            |drawellipse|
  9. C- DrawLine                |drawline|
  10. C- DrawPixel            |drawpixel|
  11. C- DrawPolygon            |drawpolygon|
  12. C- DrawRectangle        |drawrectangle|
  13. C- DrawTo                |drawto|
  14. C- FillToBorder            |filltoborder|
  15. C- FloodFill            |floodfill|
  16. C- GetRGB                |getrgb|
  17. C- LoadBrush            |loadbrush|
  18. C- LoadPicture            |loadpicture|
  19. C- MovePen                |movepen|
  20. V- PenA                    |pena|
  21. V- PenB                    |penb|
  22. V- PenO                    |peno|
  23. C- PrintText            |printtext|
  24. C- RayTo                |rayto|
  25. C- SetPen                |setpen|
  26. C- SetPrintFont            |setprintfont|
  27. C- SetPrintStyle        |setprintstyle|
  28. C- SetRGB                |setrgb|
  29. C- ShowBrush            |showbrush|
  30. C- ShowPicture            |showpicture|
  31. [E]
  32.  
  33. |areacircle|
  34. WT AreaCircle {X}, {Y}, {Radius}
  35. PL Draw a filled Circle at position {X},{Y}
  36. PL with a radius of {Radius}.  The area color
  37. PT will come from 
  38. BS PenA
  39. PT , set with the 
  40. BS SetPen
  41. PL
  42. PL command.
  43. PL
  44. PT SEE ALSO: 
  45. BS DrawCircle
  46. PT  and 
  47. BS AreaEllipse
  48. PT .
  49. ED
  50.  
  51. |areaellipse|
  52. WT AreaEllipse {X}, {Y}, {XRadius}, {YRadius}
  53. PL Draw a filled ellipse with its center
  54. PL at {X},{Y}.  The {XRadius} is the horizontal
  55. PL radius and {YRadius} is the vertical radius.
  56. PT The area color will come from 
  57. BS PenA
  58. PL , set
  59. PT with the 
  60. BS SetPen
  61. PL  command.
  62. PT SEE ALSO: 
  63. BS DrawEllipse
  64. PT  and 
  65. BS AreaCircle
  66. PT .
  67. ED
  68.  
  69. |areapolygon|
  70. WT AreaPolygon {X1}, {Y1}, {X2}, {Y2}, {X3}, {Y3} [,up to six points]
  71. PL This allows you to draw a filled polygon
  72. PL with 3 to 6 vertices.  The first 3 verticies
  73. PL are required, the other 3 are optional.  The
  74. PT area color will come from 
  75. BS PenA
  76. PL , set with
  77. PT the 
  78. BS SetPen
  79. PL  command.
  80. PT SEE ALSO: 
  81. BS DrawPolygon
  82. PT .
  83. ED
  84.  
  85. |arearectangle|
  86. WT AreaRectangle {X}, {Y}, {Width}, {Height}
  87. PL Draw a filled rectangle with upper-left
  88. PL corner at {X},{Y} and with the given width
  89. PL of {Width} and height of {Height}.  The area
  90. PT color is 
  91. BS PenA
  92. PT , set with 
  93. BS SetPen
  94. PL  command.
  95. PT SEE ALSO: 
  96. BS DrawRectangle
  97. PT .
  98. ED
  99.  
  100. |clearwindow|
  101. WT ClearWindow [{ColorReg}]
  102. PL Clears the Window to its initial state.
  103. PL If it is a picture window the image will
  104. PL be redisplayed.  If it is not a picture
  105. PL window, then it will be cleared to the
  106. PL window's background color or to the
  107. PL optional {ColorReg}.
  108. ED
  109.  
  110. |colorofpixel|
  111. WT {ColorReg}=ColorOfPixel({X}, {Y})
  112. PL This function returns an integer value
  113. PL of the color of the pixel at position
  114. PL {X},{Y} in the current window.
  115. PL
  116. PT SEE ALSO: 
  117. BS DrawPixel
  118. PT .
  119. ED
  120.  
  121. |drawcircle|
  122. WT DrawCircle {X}, {Y}, {Radius}
  123. PL Draw a hollow Circle at position {X},{Y}
  124. PL with a radius of {Radius}.  The draw color
  125. PT will come from 
  126. BS PenA
  127. PT , set with the 
  128. BS SetPen
  129. PL
  130. PL command.
  131. PL
  132. PT SEE ALSO: 
  133. BS AreaCircle
  134. PT  and 
  135. BS DrawEllipse
  136. PT .
  137. ED
  138.  
  139. |drawellipse|
  140. WT DrawEllipse {X}, {Y}, {XRadius}, {YRadius}
  141. PL Draw a hollow ellipse with its center
  142. PL at {X},{Y}.  The {XRadius} is the horizontal
  143. PL radius and {YRadius} is the vertical radius.
  144. PT The draw color will come from 
  145. BS PenA
  146. PL , set
  147. PT with the 
  148. BS SetPen
  149. PL  command.
  150. PT SEE ALSO: 
  151. BS AreaEllipse
  152. PT  and 
  153. BS DrawCircle
  154. PT .
  155. ED
  156.  
  157. |drawline|
  158. WT DrawLine {X1}, {Y1}, {X2}, {Y2}
  159. PL Draw a line from {X1},{Y1} to {X2},{Y2}.
  160. PL
  161. PT SEE ALSO: 
  162. BS DrawTo
  163. PT  and 
  164. BS MovePen
  165. PT .
  166. ED
  167.  
  168. |drawpixel|
  169. WT DrawPixel {X}, {Y}
  170. PL Draws a single pixel at {X},{Y}.  This pixel
  171. PT pixel is drawn with the color in 
  172. BS PenA
  173. PL , 
  174. PT which is set with the 
  175. BS SetPen
  176. PL  command.
  177. PL
  178. PT SEE ALSO: 
  179. BS MovePen
  180. PT  and 
  181. BS ColorOfPixel
  182. PT .
  183. ED
  184.  
  185. |drawpolygon|
  186. WT DrawPolygon {X1}, {Y1}, {X2}, {Y2}, {X3}, {Y3} [,up to six points]
  187. PL This allows you to draw a hollow polygon
  188. PL with 3 to 6 vertices.  The first 3 verticies
  189. PL are required, the other 3 are optional.  The
  190. PT draw color will come from 
  191. BS PenA
  192. PL , set with
  193. PT the 
  194. BS SetPen
  195. PL  command.
  196. PT SEE ALSO: 
  197. BS AreaPolygon
  198. PT .
  199. ED
  200.  
  201. |drawrectangle|
  202. WT DrawRectangle {X}, {Y}, {Width}, {Height}
  203. PL Draw a hollow rectangle with upper-left
  204. PL corner at {X},{Y} and with the given width
  205. PL of {Width} and height of {Height}.  The draw
  206. PT color is 
  207. BS PenA
  208. PT , set with the 
  209. BS SetPen
  210. PL  command.
  211. PT SEE ALSO: 
  212. BS AreaRectangle
  213. PT .
  214. ED
  215.  
  216. |drawto|
  217. WT DrawTo {X}, {Y}
  218. PL Draws a line from the current pen position
  219. PL to {X},{Y}.  The current pen position 
  220. PL then becomes {X},{Y}.
  221. PL
  222. PT SEE ALSO: 
  223. BS RayTo
  224. PT , 
  225. BS MovePen
  226. PT  and 
  227. BS DrawLine
  228. PT .
  229. ED
  230.  
  231. |filltoborder|
  232. WT FillToBorder {X}, {Y}, {ColorReg}
  233. PL Fill a shape starting at {X},{Y} and all
  234. PL the area outlined by {ColorReg}.  It
  235. PT fills with 
  236. BS PenA
  237. PL .
  238. PL
  239. PT SEE ALSO: 
  240. BS FloodFill
  241. PT  and 
  242. BS SetPen
  243. PT .
  244. ED
  245.  
  246. |floodfill|
  247. WT FloodFill {X}, {Y}
  248. PL Fill a solid shape starting at {X},{Y}
  249. PT with color 
  250. BS PenA
  251. PL .  The shape is determined
  252. PL by the color at {X},{Y}.
  253. PL 
  254. PT SEE ALSO: 
  255. BS FillToBorder
  256. PT  and 
  257. BS SetPen
  258. PT .
  259. ED
  260.  
  261. |getrgb|
  262. WT GetRGB {ColorReg}, <RedVar>, <GreenVar>, <BlueVar>
  263. PL Assign the red, green, and blue components
  264. PL of color register {ColorReg} to the three
  265. PL given variables.
  266. PL
  267. PT SEE ALSO: 
  268. BS SetRGB
  269. PT  and 
  270. BS SetPen
  271. PT .
  272. ED
  273.  
  274. |loadbrush|
  275. WT LoadBrush {FilePath} [,{BrushBufferName} [,<loadflags>]]
  276. PL Preload a DeluxePaint style Brush.
  277. PL See the manual for a full description
  278. PL of this command.
  279. PL
  280. PT SEE ALSO: 
  281. BS ShowBrush
  282. PT  and 
  283. BS SaveBrush
  284. PT .
  285. ED
  286.  
  287. |loadpicture|
  288. WT LoadPicture {FilePath} [,{PictureBufferName} [,<loadflags>]]
  289. PL Preload a DeluxePaint style Picture.
  290. PL See the manual for a full description
  291. PL of this command.
  292. PL
  293. PT SEE ALSO: 
  294. BS ShowPicture
  295. PT  and 
  296. BS SavePicture
  297. PT .
  298. ED
  299.  
  300. |movepen|
  301. WT MovePen {X}, {Y}
  302. PL Move the current pen position to {X},{Y}
  303. PL without drawing.
  304. PL
  305. PT SEE ALSO: 
  306. BS DrawTo
  307. PT  and 
  308. BS RayTo
  309. PT .
  310. ED
  311.  
  312. |pena|
  313. WT {ColorReg}=PenA
  314. PL This returns the current color register
  315. PL associated with PenA.  This is normally
  316. PL used as the drawing pen.
  317. PL
  318. PT SEE ALSO: 
  319. BS SetPen
  320. PT , 
  321. BS PenB
  322. PT  and 
  323. BS PenO
  324. PT .
  325. ED
  326.  
  327. |penb|
  328. WT {ColorReg}=PenB
  329. PL This returns the current color register
  330. PL associated with PenB.  This is used as an
  331. PL extra color pen by some graphic operations.
  332. PL
  333. PT SEE ALSO: 
  334. BS SetPen
  335. PT , 
  336. BS PenA
  337. PT  and 
  338. BS PenO
  339. PT .
  340. ED
  341.  
  342. |peno|
  343. WT {ColorReg}=PenO
  344. PL This returns the current color register
  345. PL associated with PenO.  This is used as the
  346. PL outline pen by some graphic operations.
  347. PL
  348. PT SEE ALSO: 
  349. BS SetPen
  350. PT , 
  351. BS SetAreaMode
  352. PL , 
  353. PT           
  354. BS PenA
  355. PT  and 
  356. BS PenB
  357. PT .
  358. ED
  359.  
  360. |printtext|
  361. WT PrintText {String}, {X}, {Y}
  362. PL Prints the {String} using the current pen
  363. PL colors, print style, and font at {X},{Y}.
  364. PL
  365. PL SEE ALSO: 
  366. BS SetPrintStyle
  367. PT , 
  368. BS SetPrintFont
  369. PT  and 
  370. BS SetPen
  371. PT .
  372. ED
  373.  
  374. |rayto|
  375. WT RayTo {X}, {Y}
  376. PL Draws a line from the current pen position
  377. PT to {X},{Y} but unlike the 
  378. BS DrawTo
  379. PL  command
  380. PL this command leaves the pen position where
  381. PL it was.
  382. PL
  383. PT SEE ALSO: 
  384. BS MovePen
  385. PT  and 
  386. BS DrawLine
  387. PT .
  388. ED
  389.  
  390. |setpen|
  391. WT SetPen {PenAColorReg} [,{PenBColorReg} [,{PenOColorReg}]]
  392. PL This command sets which color register is
  393. PT used by each of the three pens.  
  394. BS PenA
  395. PL  must
  396. PT be set, while 
  397. BS PenB
  398. PT  and 
  399. BS PenO
  400. PL  are optional.
  401. PL
  402. PT SEE ALSO: 
  403. BS SetDrawMode
  404. PT  and 
  405. BS SetRGB
  406. PT .
  407. ED
  408.  
  409. |setprintfont|
  410. WT SetPrintFont {FontName}, {PointSize}
  411. PL Set the print font to the font with
  412. PL the given name, and request the given
  413. PL point size.  Under 1.3, If the font does
  414. PL not have that point size, the next smallest
  415. PL size will be used.
  416. PT SEE ALSO: 
  417. BS SetPrintStyle
  418. PT  and 
  419. BS PrintText
  420. PT .
  421. ED
  422.  
  423. |setprintstyle|
  424. WT SetPrintStyle <styleflags> [,{ExtraPen1} [,{ExtraPen2}]]
  425. PL This command sets up the print style for
  426. PT the 
  427. BS PrintText
  428. PL  command.  See the manual
  429. PL for a full description of this command.
  430. PL
  431. PT SEE ALSO: 
  432. BS SetPrintFont
  433. PT .
  434. ED
  435.  
  436. |setrgb|
  437. WT SetRGB {ColorReg}, {RedValue}, {GreenValue}, {BlueValue}
  438. PL Assigns to color register {ColorReg} the
  439. PL red, green and blue values given.  These
  440. PL values range from 0 to 255.
  441. PL
  442. PT SEE ALSO: 
  443. BS GetRGB
  444. PT .
  445. ED
  446.  
  447. |showbrush|
  448. WT ShowBrush {BrushBufferName}, {X}, {Y} [,<paletteflags> [,{MinTermValue}]]
  449. PL Display the brush at the {X},{Y}
  450. PL coordinates.  If the brush is not loaded
  451. PL then CanDo will try to autoload it.
  452. PL See the manu